How would you implement an infinite iterator (e.g., an infinite counter)? How do you safely consume it?
Implement an infinite iterator by never setting done: true. Safely consume it by using a limiting condition (e.g., break after a number of iterations).